# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=deepin-screensaver
pkgver=5.0.5
pkgrel=1
pkgdesc='Deepin screensaver viewer and tools'
arch=('loong64' 'x86_64')
url="https://github.com/linuxdeepin/deepin-screensaver"
license=('GPL3')
depends=('qt5-declarative' 'qt5-x11extras' 'libxss' 'xscreensaver')
makedepends=('qt5-tools' 'python')
groups=('deepin')
source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-screensaver/archive/$pkgver.tar.gz")
sha512sums=('2412a4d8158efce0b6f116e6271558659bfd170e771e1855cdbf3695b053d2e138a7ecbff5cdc1117bb16323cc56b13f096f6afaa145c24ba93cca78314c993c')

build() {
  cd deepin-screensaver-$pkgver
  qmake-qt5 PREFIX=/usr
  make
}

package() {
  cd deepin-screensaver-$pkgver
  make INSTALL_ROOT="$pkgdir" install
}
